<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<link href="/css/jquery-select/jquery.searchableSelect.css" rel="stylesheet" type="text/css">

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <br class="col-sm-12">

        <input type="hidden" id="id" name="id" th:value="${obj.id}">

        <!-- 1部分 开始 -->
        <div class="form-group">
            <label class="col-sm-3 control-label">排序:</label>
            <div class="col-sm-8">
                <input id="sort" name="sort"
                       class="form-control" type="text"
                       th:value="${obj.sort}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">品牌名称:</label>
            <div class="col-sm-8">
                <input id="name" name="name" class="form-control" type="text" th:value="${obj.name}">
            </div>
        </div>

        <input type="hidden" id="teamId" th:value="${teamId}">
        <input type="hidden" name="centreName" id="centreName"/>
        <!--                        <input type="hidden" id="centreId"  name="centreId" th:value="${centreId}">-->
        <!--                        <div class="form-group" th:if="${centreId == null}">-->
        <div class="form-group">
            <label class="col-sm-3 control-label"><em class="gg-star" style="margin-right: 7px">*</em>选择商户:</label>
            <div class="col-sm-8">
                <select data-placeholder="" class="form-control chosen-select"
                        id="centreId"
                        name="centreId">
                    <option value="0">选择商户</option>
                    <option th:each="item: ${centres}"
                            th:text="${item.name}"
                            th:value="${item.centreId}"
                            th:selected="${obj.centreId eq item.centreId}"></option>
                </select>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label"><em class="gg-star" style="margin-right: 7px">*</em>品牌logo：</label>
            <div class="col-sm-8">
                <div class="input-group ">
                    <input type="text" name="logo" id="logo" value="" class="form-control" autocomplete="off"
                           th:value="${obj.logo}">
                    <span class="input-group-btn">
                        <button class="btn btn-sm btn-default" type="button" style="padding:7px 10px"
                                onclick="onSelectImgBtnClick('logo','thumbImg0')">选择图片</button>
                    </span>
                </div>
                <div class="input-group " style="margin-top:.5em;">
                    <img src="" id="thumbImg0" style="max-width: 30%"/>
                </div>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label"> <em class="gg-star" style="margin-right: 7px">*</em>品牌背景图片：</label>
            <div class="col-sm-8">
                <div class="input-group ">
                    <input type="text" name="description" id="description" value="" class="form-control"
                           autocomplete="off" th:value="${obj.description}">
                    <span class="input-group-btn">
                                                        <button class="btn btn-sm btn-default" type="button"
                                                                style="padding:7px 10px"
                                                                onclick="onSelectImgBtnClick('description','thumbImg1')"
                                                        >选择图片</button>
                                                    </span>
                </div>
                <div class="input-group " style="margin-top:.5em;">
                    <img src="" id="thumbImg1" style="max-width: 30%"/>
                </div>
            </div>
        </div>
        <!-- 1部分 结束-->

        <!-- 2部分 开始 -->
        <div class="form-group">
            <span class="col-sm-3 control-label">品牌详情</span>
            <div class="col-sm-8">
                <textarea id="content" name="content" style="height: 500px;" th:text="${obj.content}"></textarea>
            </div>
        </div>
        <!-- 2部分 结束-->

        <div class="form-group text-center">
            <div class="col-sm-8 col-sm-offset-2">
                <button class="btn btn-primary" onclick="edit11314242342()">
                    <i class="fa fa-check"></i>提交
                </button>
                <div class="btn btn-danger" onclick="closeDow()">
                    <i class="fa fa-remove"></i>关闭
                </div>
            </div>
        </div>



    </div>
</div>
</div>

<div th:include="centre/manage/include::footer"></div>
<script type="text/javascript" src="/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/js/ueditor/custom.js?v=2"></script>
<script type="text/javascript" src="/js/appjs/product/AreaData.js"></script>
<script type="text/javascript" src="/public/ace/js/ace-extra.js"></script>
<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
<script src="/js/jquery-select/jquery.searchableSelect.js"></script>
<script type="text/javascript" src="/js/appjs/reservation/brandCategory/edit.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>

</body>
</html>
